//引入二次封装的axios
import { request4 } from '@/axios/request'
import type { AllFilesResponseData } from './type'
//枚举地址
enum API {
  //获取全部规范文件概况的接口
  ALLFILE_URL = '/all'
}
//提交订单
// export const reqMissionState = () => request.post<any, SubmitOrder>(API.SUBMITORDER_URL + `${hoscode}/${scheduleId}/${patientId}`);

//获取全部规范文件概况
export const reqAllFile = () => request4.get<any, AllFilesResponseData>(API.ALLFILE_URL)

//下载指定规范文件
export const downloadResult = (id: string) => request4.get<any, Blob>(id, { responseType: 'blob' })
